﻿
@{
    var cid = Request["cid"];//绘图ID
    var cname = Request["cname"];//绘图名称
    ViewBag.Title = "Web绘流系统 - " + (cname.IsNullOrWhiteSpace() ? "" : cname + " - ") + "绘图";
}

@section Styles{
    <!-- 界面样式表 -->
    <link type="text/css" rel="stylesheet" href="~/Content/Canvas/archive/grapheditor/css/grapheditor.css" />
}

@section Scripts{
    <!-- mxGraph -->
    <script type="text/javascript">
        mxBasePath = '/Content/mxGraph1.10.0/'; //mxGraph资源文件路径
    </script>
    <script type="text/javascript" src="~/Content/mxGraph1.10.0/js/mxClient.js"></script>
    <script type="text/javascript" src="~/Content/mxGraph1.10.0/js/mxClientExtend.js"></script>


    <!-- tabCommon -->
    <script type="text/javascript" src="~/Content/js/tabCommon.js"></script>


    <!-- 界面内资源与图片路径 -->
    <script type="text/javascript">
        var mxResourcesPath = "/Content/Canvas/archive/grapheditor/"; //resources/default-style.xml中include需手动更改
        var mxImagesPath = "/Content/Canvas/";
        var ChartInfo = { cid: '@(cid.IsGuid() ? cid : "")', cname: '@(!cname.IsNullOrWhiteSpace() ? cname : "")' };
    </script>
    <!-- 左侧Library图形列表 -->
    <script type="text/javascript" src="~/Content/Canvas/archive/grapheditor/js/LibraryPanel.js"></script>
    <!-- 数据访问与处理 -->
    <script type="text/javascript" src="~/Content/Canvas/archive/grapheditor/js/DiagramStore.js"></script>
    <!-- 左侧Diagrams窗体，可做保存节点列表 -->
    <script type="text/javascript" src="~/Content/Canvas/archive/grapheditor/js/DiagramPanel.js"></script>
    <!-- 右侧绘图整界面Diagram窗体 -->
    <script type="text/javascript" src="~/Content/Canvas/archive/grapheditor/js/MainPanel.js"></script>
    <!-- 主程序 -->
    <script type="text/javascript" src="~/Content/Canvas/archive/grapheditor/js/GraphEditor.js"></script>
    <!-- 执行组件 -->
    <script type="text/javascript">
        mxGraphHandler.prototype.guidesEnabled = true;

        mxGuide.prototype.isEnabledForEvent = function (evt) {
            return !mxEvent.isAltDown(evt);
        };

        mxEdgeHandler.prototype.snapToTerminals = true;

        mxUtils.alert = function (message) {
            //Ext.example.msg(message, '', '');
            SetbbarStatus(message);//以底部工具栏状态消息为提示
        };

        Ext.onReady(function () {
            main();
        });
    </script>
}
